package com.example.oauth.service.impl;

import com.example.oauth.entity.Role;
import com.example.oauth.mapper.RoleMapper;
import com.example.oauth.service.IRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 付青建
 * @since 2021-11-16
 */
@Service
@Slf4j
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {
    @Autowired
    private RoleMapper roleMapper;
    @Override
    public List<Role> getAllRole(){
        log.info("------------------查询所有角色");
       return roleMapper.selectList(null);
    }

}
